import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";
import ViteComponents, { AntDesignVueResolver } from 'vite-plugin-components';
// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
      "~": path.resolve(__dirname, "src/components"),
      // "@/api": path.resolve(__dirname, "src/api"),

    },
  },
  plugins: [
    vue(),
    ViteComponents({
      customComponentResolvers: [AntDesignVueResolver()],
    })
  ]
})
